package org.swim.web.servlet.consts;

import net.sf.json.JsonConfig;

import org.swim.web.utils.JsonUtils;

public class CollaborationAttr {

	public static String WHO = "who";

	public static class AbilityAttr {
		public static String ABILITY_ID = "id";
		public static String ABILITY_NAME = "name";
	}

	public static class SignInAttr {
		public static String EMAIL = "email";
		public static String PASSWORD = "password";
	}

	public static JsonConfig SIGNIN_JSONCFG;

	static {
		SIGNIN_JSONCFG = JsonUtils.createJsonParamsFilter(SignInAttr.EMAIL, SignInAttr.PASSWORD);

		SIGNIN_JSONCFG.registerJsonValueProcessor(String[].class,
				JsonUtils.getJvpStringArrToString());

	}

}